package com.endpoint.member.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户消费记录表
 * </p>
 *
 * @author Jack_Li
 * @since 2024-07-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class MemberBuyRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 会员ID
     */
    private Long memberId;

    /**
     * 购买的小说ID
     */
    private Long bookId;

    /**
     * 购买的小说名
     */
    private String bookName;

    /**
     * 购买的章节ID
     */
    private Long bookIndexId;

    /**
     * 购买的章节名
     */
    private String bookIndexName;

    /**
     * 购买使用的终点币数量
     */
    private Integer buyAmount;

    /**
     * 购买时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


}
